<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<title>角色管理</title>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<link media="screen" rel="stylesheet" href="../style/colorbox.css" />
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<script language="javascript" src="/js/public.js"></script>
<script src="/js/jquery-1.4.2.min.js"></script>
<script src="/js/jquery.colorbox.js"></script>
<script>
		$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$("a[rel='example3']").colorbox({iframe:true, transition:"none", width:"550", height:"210"});
			$("a[rel='example4']").colorbox({iframe:true,transition:"none",width:"700", height:"500"});
		});
		function paging(){
			
		}
	</script>
</head>
<body class="indexbody">
	<#assign a=0>
   	<#assign b=0>
   	<#assign c=0>
   	<#list allPower?if_exists as power>
   		<#if power?number == 201>
   			<#assign a=a+1>
   		</#if>
   		<#if power?number == 202>
   			<#assign b=b+1>
   		</#if>
   		<#if power?number == 225>
   			<#assign c=c+1>
   		</#if>
   	</#list>
<center>
<form action="roleIndex.action" method="post" name="roleIndex" id="roleIndex">
<div id="Content">
  <div style="width:100%; ">
  <div urlvalue="Oasp2803" functionid="FUNC00004" urlname="公告" recordcount="5" minflg="0" class="DesktopBlock" id="FUNC00004">
  <div id="Block">
          <div id="BlockHead">
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
              <tbody>
                <tr valign="center">
                  <td width="5"></td>
                  <td>角色管理</td> 
                  <td width="22"></td>
                </tr>
              </tbody>
            </table>
          </div>
          <!-- 搜索排序 -->
          <div class="BlockMemo" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
          
              <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f9f9f9">
  <tr>
    <td height="50"><div class="MbBox ">
      <ul class="right">
        <li class="mar-l15 height-30"><select name="orderBy" id="orderBy" onChange="document.roleIndex.submit();" class="background-zi">
          <option  value="" selected>选择排序</option>
          <option value="id-UP" <#if orderBy?default("")="id-UP">selected</#if> >角色名-升↑</option>

            <option value="id-DOWN" <#if orderBy?default("")="id-DOWN">selected</#if> >角色名-降↓</option>
          <option value="role_name-UP" <#if orderBy?default("")="role_name-UP">selected</#if> >角色名-升↑</option>

            <option value="role_name-DOWN" <#if orderBy?default("")="role_name-DOWN">selected</#if> >角色名-降↓</option>
			
			<option value="add_time-UP" <#if orderBy?default("")="add_time-UP">selected</#if> >添加时间-升↑</option>
			
			<option value="add_time-DOWN" <#if orderBy?default("")="add_time-DOWN">selected</#if>>添加时间-降↓</option>
			

          </select> </li>
        </ul>
     
      <ul >
        <li class="w120px text-ar" style=" height:30px;line-height:30px;"><select name="parName" id="parName" class="background-zi se-po">
          <option value="" selected>-选择条件名称-</option>
    <option value="id" <#if parName?default("")=="id">selected</#if>>角色ID</option>
    
    <option value="role_name" <#if parName?default("")=="role_name">selected</#if>>角色名</option>
    
    <option value="add_manager" <#if parName?default("")=="add_manager">selected</#if>>添加人</option>
    

          </select></li>
        <li class="mar-l5 height-30"><input name="parVal" id="parVal" style="height:22px;  background:#CCC;vertical-align:middle" type="text" />
          </li>
        <li class="mar-l5 height-30"><div class="yuding_btn">
          <!-- 搜索按钮  -->
          <span><span class="xp-b-leftSubmit2"><!-- --></span>
            <a id="uw_flight_submit_lnk" class="xp-b-submit2" href="#" onclick="javascript:roleIndex.submit();">搜索</a> 
            <span class="xp-b-rightSubmit2"><!-- --></span></span>
          </div></li>
          </ul>
		</div>
	  </td>
    </tr>
</table>

           </div>
          <div id="BlockDetail">
          <table border="0" cellpadding="1" cellspacing="1" width="100%" bgcolor="#f9f9f9">
<tbody><tr>
    <td align="center" bgcolor="#EAEAEA" height="30" width="5%">序号</td>
    <td align="center" bgcolor="#EAEAEA" width="10%">角色名称</td>
    <td align="center" bgcolor="#EAEAEA" height="30" width="8%">添加人</td>
    <td align="center" bgcolor="#EAEAEA" width="20%">添加时间</td>
    <td width="19%" height="30" align="center" bgcolor="#EAEAEA">操作<#if a==0>
    		<font color="#777777">[添加]</font>
    	<#else>[<a rel="example3" href="addroleLoad.action">+添加</a>]</#if></td>
</tr>
<#if roleList?exists>

<#assign i=0>
<#list roleList as role>                                  
<#assign i=i+1>                                
<tr>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="30">${i}
    </td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${role.role_name?default('')}</td>
    <td height="25" align="center" bgcolor="#FFFFFF" class="STYLE10" style="padding-left:5px;">${role.add_manager?default('')}</td>
    
    
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${role.add_time?default('')}</td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25"><table border="0" cellpadding="0" cellspacing="0" width="200">
      <tbody><tr>
        <td align="center" height="20">
	        <#if c==0>
	    		<font color="#777777">角色授权</font>
	    	<#else>
        	    <a rel="example4" href="empowerload.action?roleId=${role.id }" >角色授权</a>
        	</#if>
            <#if b==0>
    			<font color="#777777">删除角色</font>
    		<#else>
         		 <a href="#" onclick="openDeleteDialog('delrole.action?roleId=${role.id}','此操作将会删除所有与此角色相关的信息，确认删除吗？');">删除角色</a>
         	</#if>
          </td>
        </tr>
    </tbody></table></td>
    </tr>
    </#list>
    <#else>
    <tr>
		<td colspan="5" class="STYLE10" align="center" bgcolor="#FFFFFF" height="30">
			没有找到相应的记录
		</td>
	</tr>
    </#if>
									  </tbody></table>
                                      <div id="BlockFoot">
              <div class="left"><span class="STYLE10">第<span class="h2-red">${page}</span>页/共<span class="h2-red">${intPageCount}</span>页,总计<span class="h2-red">${intRowCount}</span>条记录</span></div>
												
	<div class="right">
		<#if page lte 1>
		[首页]
		[上一页]
		<#else>
	<span class="STYLE10">  [<a href="roleIndex.action?page=1" >首页</a>]
	 [<a href="roleIndex.action?page=${page-1}">上一页</a>]] 
	 </#if>
	 	<#if page gte intPageCount>
		[下一页]
		[尾页]
		<#else>	
	 [<a href="roleIndex.action?page=${page+1}">下一页</a>]] 
	 [<a href="roleIndex.action?page=${intPageCount}>尾页</a>]] 
	 </#if>
	 转向<select id="page" name="page" onChange="document.roleIndex.submit()">
	 	<#list 1..intPageCount as p>
	      <option value="${p}" selected="selected">${p}</option>
	      </#list>
	  </select> 页 </span></div>
            </div>
           </div> 
      </div>
        </div>
      </div>
  </div>
</form>
</center>
</body>
</html>

